//
//  YKUMSDK.m
//  YKUMSDK
//
//  Created by edward on 2022/9/19.
//

#import "YKUMSDK.h"
#import <UMCommon/UMCommon.h>
#import <UMCommon/UMConfigure.h>

@interface YKUMSDK ()

@end

@implementation YKUMSDK

/** 初始化友盟所有组件产品
 @param appKey 开发者在友盟官网申请的appkey.
 @param channel 渠道标识，可设置nil表示"App Store".
 */
+ (void)initWithAppkey:(NSString *)appKey channel:(NSString *)channel
{
    [UMConfigure initWithAppkey:appKey channel:channel];
#if __has_include("YKUMSDK/YKUMSDK+Log.h")
    [YKUMSDK setUpUMCommonLogManager];
#endif
}

/** 设置是否在console输出sdk的log信息.
 @param bFlag 默认NO(不输出log); 设置为YES, 输出可供调试参考的log信息. 发布产品时必须设置为NO.
 */
+ (void)setLogEnabled:(BOOL)bFlag
{
    [UMConfigure setLogEnabled:bFlag];
}

@end
